<template>
  <div id="app">
    <Demo msg="我是" school="尚硅谷">
      <!-- 在子组件中未写slot之前，下面的span是虚拟的dom结点 -->
      <span>尚学堂</span>
      <!-- 具名插槽需要用template包裹 -->
      <template #Header>
        <p>满江红</p>
      </template>
    </Demo>
    
    <Demo1></Demo1>
  </div>
</template>

<script>
import Demo from './components/Demo.vue'
import Demo1 from './components/Demo1.vue'

export default {
  name: 'App',
  components: {
    Demo,Demo1
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
